const EventEmiiter = require('events')
class CustomEvent extends EventEmiiter{}
const ce = new CustomEvent()
ce.once('test',()=>{
    console.log('你好啊 once')
})

setInterval(()=>{
    ce.emit('test')
},500)
